/**
 * Created by zhangwenlei on 2017/4/12.
 */
ADF.domControl.TextArea = function(parent) {
    ADF.domControl.TextArea.superclass.constructor.call(this, parent);
};

COM.util.defineClass(ADF.domControl.TextArea, ADF.domControl.BaseControl, {
    getLabel: function(){
        return "TextArea";
    },
    setText: function(text) {
        this.domElement.innerHTML = text;
    },
    _getDomElement: function(model) {
        var textarea = COM.util.HTMLUtil.createELement('<textarea class="form-control" rows="5">'+model.getText()+'</textarea>');
        return textarea[0];
    }

});